package homework.api01.apitest01;

public class StringAndStringBuilder {
    public static void main(String[] args) {
//        String str = "a";
//        for (int i=0;i<1000000;i++){
//            str = str+"a";
//        }
//        System.out.println(str);

        StringBuilder builder = new StringBuilder("a");
        for (int i=0;i<100000;i++){
            builder.append("a");
        }
        System.out.println("添加完毕");
    }
}
